package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_user_integral")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserIntegralModel {
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer integral;
    private Integer status;
    @TableField(exist = false)
    private String statusText;
    @TableField(exist = false)
    private String integralText;
    private Integer afterIntegral;
    private Integer type;
    @TableField(exist = false)
    private String typeText;
    private Integer associatedId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
    @TableField(exist = false)
    private String avatar;
    @TableField(exist = false)
    private String phoneNumber ;
    @TableField(exist = false)
    private String idCard;
    @TableField(exist = false)
    private Integer integralAmount;
    @TableField(exist = false)
    private String title;
    @TableField(exist = false)
    private String activity;
    @TableField(exist = false)
    private String goods;
    @TableField(exist = false)
    private Integer num;
}
